package com.ocom.payconfig.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.payconfig.EntityDishesPoint;
import com.ocom.common.request.payconfig.SaveDishesPlacesRequest;
import com.ocom.common.response.payconfig.GetPlacePlanListResponse;
import com.ocom.common.vo.payconfig.DishesPointListVo;
import com.ocom.common.vo.payconfig.DishesPointOrgVo;

import java.util.Date;
import java.util.List;

public interface DishesPointService extends IService<EntityDishesPoint> {
    public DishesPointOrgVo selectPoint(Long comId, String pointOrg);


    EntityDishesPoint selectLastDate(Long comId,
                                     Integer pointId,
                                     Integer mealNo,
                                     Date mealDate
    );

    public List<DishesPointListVo> selectPointDishes(Long comId,
                                                     Integer restPoint,
                                                     String lastDate,
                                                     Integer mealNo,
                                                     Integer pointId,
                                                     List<Integer> thisOrg);

    public List<GetPlacePlanListResponse> getPlacePlanList(Long comId,
                                                           Integer merchId,
                                                           Integer pointId);

    public List<EntityDishesPoint> getPointPlace(Long comId,
                                                 Integer pointId,
                                                 String mealDate,
                                                 Integer mealNo);

    public void savePointPlaceBatch(Long companyId, SaveDishesPlacesRequest request);
}
